/**
 * 函数类型
 */

 export {}

 function func(a: number, b?: number, ...rest: number[]): string {
  return "fdsfsd"
 }

 func(1)

 const func2: (a: number, b?: number) => string = function (a: number, b?: number): string  {
  return "fdsfsd"
 }
